﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustomerRelation.Assign.aspx.cs"
    Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Quan tri he thong</title>
    <link rel="stylesheet" href="assets/css/reset.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/styleexpress.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/invalid.css" type="text/css" media="screen" />

    <script src="assets/js/Admin_002.js" type="text/javascript"></script>

    <script src="assets/js/Admin.js" type="text/javascript"></script>

    <script src="assets/js/jquery.js" type="text/javascript"></script>

    <script src="assets/js/jquery.validate.js" type="text/javascript"></script>

    <script type='text/javascript' src="assets/js/common.js"></script>

    <script type="text/javascript">
    
    function ReloadOpener() 
    {
//     var tid= getUrlVars()['tid']; 
//     var openerHref="";
//     openerHref=window.opener.location.href;     
//    if (openerHref.indexOf('tid') != -1) 
//    {
//        if (openerHref.indexOf('?') != -1) 
//        {
//            openerHref+="&tid="+tid;
//        }
//        else
//        {
//            openerHref+="?tid="+tid;
//        }
//    }
//    else
//    {
//        window.opener.location.reload();
//    }    
    window.opener.location.reload();
     window.close(); 
     }
    </script>

    <style>
    table.rdStyle td, table.rdStyle th {
        padding: 7px !important;
        font-size:12px;
    }
    </style>
</head>
<body>
    <div id="body-wrapper" style="margin-top: 30px;">
        <h2>
            Gán khách hàng cho người quản lý</h2>
        <div class="content-box">
            <form id="frmEdit" runat="server" method="post">
                <div class="content-box-header">
                    <h3 style="cursor: s-resize;">
                        Danh sách người quản lý
                    </h3>
                    <div class="clear">
                    </div>
                </div>
                <fieldset class="adminform">
                    <table width="100%" cellpadding="0" cellspacing="0" style="border-top: 1px solid #CCCCCC;">
                        <tbody>
                            <tr>
                                <th class="rdStyle_th">
                                    List User:
                                </th>
                                <td>
                                    <input type="hidden" id="hidIDLst" value="" runat="server" />
                                    <asp:RadioButtonList ID="rdlistUser" runat="server" Width="325px" RepeatDirection="Horizontal"
                                        RepeatColumns="12" CssClass="rdStyle">
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </fieldset>
                <div class="clear">
                </div>
                <div style="margin-top: 5px; width: 100%">
                    <asp:Button ID="btnSave" runat="server" Text="Update" class="button" OnClick="btnSave_Click" />
                    <input type="button" id="Exit" value="Exit" class="button" onclick="ReloadOpener();" />
                </div>
            </form>
        </div>
    </div>

    <script language="javascript">
          var  listval  = eval("window.opener.document.forms.frmCustomers.txtListCustomerID").value;
          window.document.forms.frmEdit.hidIDLst.value = listval;
    </script>

</body>
</html>
